<?php
/*
  Template Name: Portfolio
*/
?>

<?php get_header(); ?>    

    <div class="left_content">
    
<?php
      $args = array(
                   'category_name' => 'portfolio',
                   'post_type' => 'post',
                   'posts_per_page' => 10,
                   'paged' => ( get_query_var('paged') ? get_query_var('paged') : 1),
                   );
      $x = 1;
      query_posts($args);
      while (have_posts()) : the_post(); ?>
      
      <?php if($x % 2 == 1) { ?>
      <div class="featured_medium left">
      <?php } else { ?>
      <div class="featured_medium right">
      <?php } ?>
        <a href="<?php the_permalink(); ?>"><?php the_post_thumbnail('featured-medium'); ?></a>
        
        <h3><a href="<?php the_permalink(); ?>"><?php echo substr(get_the_title(),0,50); ?></a></h3>
        <p><?php echo substr(strip_tags(get_the_content()),0,60); ?></p>
      </div><!--//featured_medium-->
      
      <?php $x++; ?>
      <?php endwhile; ?>
        <div class="clear"></div>
        <div class="left"><?php previous_posts_link('&laquo; Previous') ?></div>
        <div class="right"><?php next_posts_link('More &raquo;') ?></div>
      <?php wp_reset_query(); ?>
      
    </div><!--//left_content-->
    
<?php get_sidebar(); ?>

<?php get_footer(); ?>